package com.qujia.station.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qujia.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

@ApiModel("油品")
public class Oil extends BaseEntity

{
    private static final long serialVersionUID = 1L;

    /** 油品id */
    @ApiModelProperty("油品id")
    private Long oilId;


    /** 油品名称 */
    @ApiModelProperty("油品名称")
    private String oilName;

    /** 油品类型 */
    @ApiModelProperty("油品类型")
    private String oilClass;


    /** 油品型号 */
    @ApiModelProperty("油品型号")
    private String oilType;

    /** 油品单位 */
    @ApiModelProperty("油品单位")
    private String unitCode;

    /** 删除人 */
    private Long deleteUser;
    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deleteDate;

    /**删除标志*/
    private String  deleteStatus;

    /**删除标志*/
    private String  cardType;
    @Setter
    @Getter
    @ApiModelProperty("油品价格")
    private BigDecimal oilStationPrice;



    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public Long getDeleteUser() {
        return deleteUser;
    }

    public void setDeleteUser(Long deleteUser) {
        this.deleteUser = deleteUser;
    }

    public Date getDeleteDate() {
        return deleteDate;
    }

    public void setDeleteDate(Date deleteDate) {
        this.deleteDate = deleteDate;
    }

    public String getDeleteStatus() {
        return deleteStatus;
    }

    public void setDeleteStatus(String deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    public Long getOilId() {
        return oilId;
    }

    public void setOilId(Long oilId) {
        this.oilId = oilId;
    }

    public String getOilName() {
        return oilName;
    }

    public void setOilName(String oilName) {
        this.oilName = oilName;
    }

    public String getOilClass() {
        return oilClass;
    }

    public void setOilClass(String oilClass) {
        this.oilClass = oilClass;
    }

    public String getOilType() {
        return oilType;
    }

    public void setOilType(String oilType) {
        this.oilType = oilType;
    }

    public String getUnitCode() {
        return unitCode;
    }

    public void setUnitCode(String unitCode) {
        this.unitCode = unitCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("oilId", getOilId())
                .append("oilName", getOilName())
                .append("oilClass", getOilClass())
                .append("oilType", getOilType())
                .append("unitCode", getUnitCode())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }


}
